<?php
include('include/config.inc.php');
if(!isset($_SESSION['s_activId'.$cfgPack])
   || (isset($_SESSION['s_userType'.$cfgPack]) && isset($cfgFileNames['item'][$_SESSION['s_userType'.$cfgPack]]) 
        && $cfgFileNames['item'][$_SESSION['s_userType'.$cfgPack]] == 0))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{	
	$queryDetail = "DELETE FROM dailyreportdetail
	            WHERE dailyReportMasterId = ".$_GET['dailyReportMasterId'];
	$detailResult= mysql_query($queryDetail);
	$queryMaster = "DELETE FROM dailyreportmaster
	            WHERE dailyReportMasterId = ".$_GET['dailyReportMasterId'];
	$masterResult1= mysql_query($queryMaster);
	header("Location:dailyReportList.php");
}
?>